<%@ tag language="java" pageEncoding="UTF-8" body-content="empty" trimDirectiveWhitespaces="true"%>
<%@ attribute name="id" type="java.lang.String" required='true' description="富文本编辑器的id"%>
<%@ attribute name="basePath" type="java.lang.String" description="上传图片的控制器路径" %>
<%@ attribute name="bodyClass" type="java.lang.String" description="富文本框的样式，默认article-content" %>
<%@ attribute name="className" type="java.lang.String" description="className" %>
<%@ attribute name="allowFileManager" type="java.lang.Boolean" description="默认true" %>	
<%@ attribute name="height" type="java.lang.String" description="编辑器的高度，只能设置px，比TEXTAREA输入框样式表高度优先度高,默认300px" %>
<%@ attribute name="width" type="java.lang.String" description="编辑器的宽度，可以设置px或%，比TEXTAREA输入框样式表宽度优先度高" %>
<%@ attribute name="allowImageRemote" type="java.lang.Boolean" description="是否显示网络图片，默认false" %>
<%@ attribute name="name" type="java.lang.String" required="false" description="定义textarea的name属性"%>
<%@ attribute name="actionBarMode" type="java.lang.String" required="false" description="操作栏模式，简洁的(simple)/完整的(full)，default=simple"%>	

<textarea class="richText" data-tag="kindeditor" id="${id }" class="${className}" name="${name }"></textarea>		

<script type="text/javascript">
(function(){
	TagSupport.kindeditor({
		"id":"${id}", "basePath":"${basePath}", "bodyClass":"${bodyClass}", "allowFileManager":"${allowFileManager}", 
		"height":"${height}", "width":"${width}", "allowImageRemote":"${allowImageRemote}", 
		"inputName":"${inputName}", "inputId":"${inputId}", "name":"${name}", 'actionBarMode': "${actionBarMode}"
	});
})();
</script>